Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuiteDiscussions Q&R
Помогите с задачами
0 Vote
1 Réponse
what have i to do, if i want that the program always writes for example :
0+1
1+2
3+3
6+4
10+5
15+6
...
because now it just writes
1
3
6
10
15
...
and maybe if it works, can i make then
0+1=1
1+2=3
3+3=6
6+4=10
#include <iostream>
using namespace std;
int main(){
int i;
int sum = 0;
for (i = 1; i <= 100; i++){
sum = sum+i;
cout<<sum<<endl;
}
cout<<sum;
return 0;
}
1 Vote
5 RéponsesWher is mistake?
0 Vote
5 RéponsesAujourd'hui en vedette
3 consecutive words
1 Votes
Access deny problem
2 Votes
c++ help
0 Votes
BOTSS
0 Votes
A small question
0 Votes
Help
0 Votes
What's wrong with my code?
0 Votes